<template>
	<view class="content">
		<u-collapse>
			<u-collapse-item :title="item.head" v-for="(item, index) in itemList" :key="index">
				{{item.body}}
			</u-collapse-item>
		</u-collapse>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				itemList: [],
			}
		},
		onLoad: function() {
			this.$u.post('index.php?mod=app&act=list&table=article', {
				cid:553,
				page:1,
				limit:100
			}).then(res => {
				if (res.code == 0) {
                    this.itemList=res.data
				} else {
					this.msg(res.msg)
				}

			})
		}
	}
</script>

<style>
	.content {
		padding: 20rpx;
	}
</style>
